package com.blog.distribute.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName FeignConfig
 * @Destription openfeign 日志记录级别与重试机制
 * @Author 天堂小野花
 * @Date 2025/8/4  16:25
 * @Version 1.0
 */
public class FeignConfig {
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }
    @Bean
    Retryer retryer(){
        return new Retryer.Default();
    }

}
